﻿using System;
using System.Collections.Generic;
using System.Text;
using PPAP.DAO;
using PPAP.Model;
using System.Data;

namespace PPAP.BO
{
    public class SupplierAdminBO
    {
        public SupplierAdminBO() { }
        SupplierAdminDAO dao = new SupplierAdminDAO();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(SupplierAdmin model)
        {
            return dao.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public int Update(SupplierAdmin model)
        {
            return dao.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public int Delete(int id)
        {
            return dao.Delete(id);
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public SupplierAdmin GetModel(int id)
        {
            return dao.GetModel(id);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dao.GetList(strWhere);
        }
    }
}
